﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Themsanpham.aspx.cs" Inherits="BHTT.Baiviet.Themsanpham" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManger1" runat="Server"></asp:ScriptManager>
        <div style="width:100%; height:2000; padding-left:200px; padding-right:200px;">
            
            <table>
                <tr>
                    <td></td>
                    <td>
                        <asp:RadioButton ID="rdbThem" runat="server" Text="Thêm" Checked="True" />
                        <asp:RadioButton ID="rdbSua" runat="server" Text="Sửa" />
                    </td>
                </tr>
                <tr>
                    <td>Nhóm sản phẩm</td>
                    <td>
                        <asp:DropDownList ID="drlNhomsanpham" runat="server" DataTextField="Tennhom" 
                            DataValueField="ID" Height="31px" Width="199px" AutoPostBack="True" 
                            onselectedindexchanged="drlNhomsanpham_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>Loại sản phẩm</td>
                    <td>
                        <asp:DropDownList ID="drlLoaisanpham" runat="server" DataTextField="Tenloaisanpham" 
                            DataValueField="ID" Height="31px" Width="199px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>ID</td>
                    <td>
                        <asp:TextBox ID="txtID" runat="server" MaxLength="50" Width="200" Height="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Mã sản phẩm</td>
                    <td>
                        <asp:TextBox ID="txtMasanpham" runat="server" MaxLength="50" Width="200" Height="30"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Tên sản phẩm</td>
                    <td>
                        <asp:TextBox ID="txtTensanpham" runat="server" MaxLength="100" Width="441px" 
                            Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Giá bán</td>
                    <td>
                        <asp:TextBox ID="txtGiaban" runat="server" MaxLength="100" Width="441px" 
                            Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Số lượng</td>
                    <td>
                        <asp:TextBox ID="txtSoluong" runat="server" MaxLength="100" 
                            Width="441px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>Mô tả</td>
                    <td>
                        <telerik:RadEditor ID="txtMota" runat="server" Height="700" Width="800px">
                            <ImageManager ViewPaths="~/Image"
                                UploadPaths="~/Image"
                                DeletePaths="~/Image" MaxUploadFileSize="6004800">
                            </ImageManager>
                        </telerik:RadEditor>
                    </td>
                </tr>
                <tr>
                    <td>Ảnh đại diện</td>
                    <td>
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:Image ID="imgDaidien" runat="server" Height="155px" Width="182px" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:Button ID="btnLuu" runat="server" Text="Lưu" Width="98px" 
                            onclick="btnLuu_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
